package org.dei.perla.sys.device.channel.frame.address.concrete;
import org.dei.perla.sys.device.channel.frame.address.FrameAddress;

/**
 * Rappresenta un indirizzo seriale <PORTA-SERIALE>
 */
public class SerialFrameAddress extends FrameAddress {

	public SerialFrameAddress() {
		super();
	}
	
	public SerialFrameAddress(String parAddress) {
		super(parAddress);
	}
	
	public String getAddress() {
		return (String) this.pAddress;
	}

	public void setAddress(String parAddress) {
		super.setAddress(parAddress);
	}

	@Override
	public boolean equals(FrameAddress parFrameAddress) {
		if ( parFrameAddress.getAddress().equals(getAddress()) ) {
			return true;
		} else {
			return false;
		}
	}
	
	public String toString() {
		String s = "SerialFrameAddress( " + getAddress() + "  )";
		return s;
	}

	@Override
	public void setAddressFromString(String parAddress) {
		this.setAddress(parAddress);
	}
	
	

}
